package com.marvels.common.test;

import java.util.ArrayList;
import java.util.List;

import org.springframework.batch.core.scope.context.JobSynchronizationManager;

import com.alibaba.fastjson.JSONObject;
import com.marvels.approve.process.dto.LaAttachAtmeTypeViewDTO;
import com.marvels.common.test.dto2.ParamDto;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.json.JSONUtil;

public class test {

	public static void main(String[] args) {
		List<com.marvels.common.test.dto1.ParamDto> result = null;
		com.marvels.common.test.dto1.ParamDto dto = new com.marvels.common.test.dto1.ParamDto();
		dto.setId("33333");
		ParamDto param = new ParamDto();
		BeanUtil.copyProperties(dto, param);
		List<ParamDto> apiResult = init(param);
		result = JSONObject.parseArray(JSONObject.toJSONString(apiResult), com.marvels.common.test.dto1.ParamDto.class);
		System.out.println(JSONObject.toJSONString(result));
	}

	
	private static List<ParamDto> init(ParamDto dot){
		System.out.println(JSONObject.toJSONString(dot));
		List<ParamDto> ss = new ArrayList<ParamDto>();
		ParamDto dto = new ParamDto();
		dto.setAge("11");
		dto.setId("2");
		dto.setSex("xx");
		ss.add(dto);
		return null;
	}
	
	/*public object paramChange(source)*/
}
